<?php

namespace MyBlog\Http\Controllers\backend;

use Illuminate\Support\Facades\View;
use MyBlog\Http\Requests;
use MyBlog\Http\Controllers\Controller;
use MyBlog\Models\Manager;
use Illuminate\Support\Facades\Auth;

class BaseController extends Controller
{
	protected $manager;
	
	public function __construct() {
		$manager = $this->getManager();
		View::share('manager', $manager);
	}
	
	protected function getManager() {
		return Manager::find(Auth::id());
	}
}
